package com

import grails.plugins.springsecurity.Secured;

class SomeController {

	@Secured(['ROLE_ADMIN'])
	def index() {
		if (isLoggedIn()) {
			String username = getPrincipal().username
			render username
		}
		if (!isLoggedIn()) {
		}
		if (loggedIn) {
		}
		if (!loggedIn) {
		}
	}
}
